﻿namespace WMS6.Web.OutboundService2Ref
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="VanningDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class VanningDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private decimal AmountField;
        [OptionalField]
        private string BarCodeField;
        [OptionalField]
        private string ContainerIDField;
        [OptionalField]
        private string ContainerNoField;
        [OptionalField]
        private string ContainerTypeField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternLineIDField;
        [OptionalField]
        private string ExternOrderIDField;
        [OptionalField]
        private decimal HeightField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private decimal LengthField;
        [OptionalField]
        private string LocField;
        [OptionalField]
        private string LotField;
        [OptionalField]
        private string LpnIDField;
        [OptionalField]
        private string MultiFlagField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private string OrderLineIDField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private string ParentContainerIDField;
        [OptionalField]
        private string PickDetailIDField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SealNoField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private decimal TotalQtyField;
        [OptionalField]
        private decimal TotQtyField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UomIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private decimal VannedQtyField;
        [OptionalField]
        private int VannindLineIDField;
        [OptionalField]
        private string VanningIDField;
        [OptionalField]
        private decimal VanningQtyField;
        [OptionalField]
        private decimal VolumeField;
        [OptionalField]
        private decimal WeightField;
        [OptionalField]
        private string WhIDField;
        [OptionalField]
        private decimal WidthField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public decimal Amount
        {
            get
            {
                return this.AmountField;
            }
            set
            {
                if (!this.AmountField.Equals(value))
                {
                    this.AmountField = value;
                    this.RaisePropertyChanged("Amount");
                }
            }
        }

        [DataMember]
        public string BarCode
        {
            get
            {
                return this.BarCodeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BarCodeField, value))
                {
                    this.BarCodeField = value;
                    this.RaisePropertyChanged("BarCode");
                }
            }
        }

        [DataMember]
        public string ContainerID
        {
            get
            {
                return this.ContainerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContainerIDField, value))
                {
                    this.ContainerIDField = value;
                    this.RaisePropertyChanged("ContainerID");
                }
            }
        }

        [DataMember]
        public string ContainerNo
        {
            get
            {
                return this.ContainerNoField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContainerNoField, value))
                {
                    this.ContainerNoField = value;
                    this.RaisePropertyChanged("ContainerNo");
                }
            }
        }

        [DataMember]
        public string ContainerType
        {
            get
            {
                return this.ContainerTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContainerTypeField, value))
                {
                    this.ContainerTypeField = value;
                    this.RaisePropertyChanged("ContainerType");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternLineID
        {
            get
            {
                return this.ExternLineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternLineIDField, value))
                {
                    this.ExternLineIDField = value;
                    this.RaisePropertyChanged("ExternLineID");
                }
            }
        }

        [DataMember]
        public string ExternOrderID
        {
            get
            {
                return this.ExternOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternOrderIDField, value))
                {
                    this.ExternOrderIDField = value;
                    this.RaisePropertyChanged("ExternOrderID");
                }
            }
        }

        [DataMember]
        public decimal Height
        {
            get
            {
                return this.HeightField;
            }
            set
            {
                if (!this.HeightField.Equals(value))
                {
                    this.HeightField = value;
                    this.RaisePropertyChanged("Height");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public decimal Length
        {
            get
            {
                return this.LengthField;
            }
            set
            {
                if (!this.LengthField.Equals(value))
                {
                    this.LengthField = value;
                    this.RaisePropertyChanged("Length");
                }
            }
        }

        [DataMember]
        public string Loc
        {
            get
            {
                return this.LocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocField, value))
                {
                    this.LocField = value;
                    this.RaisePropertyChanged("Loc");
                }
            }
        }

        [DataMember]
        public string Lot
        {
            get
            {
                return this.LotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotField, value))
                {
                    this.LotField = value;
                    this.RaisePropertyChanged("Lot");
                }
            }
        }

        [DataMember]
        public string LpnID
        {
            get
            {
                return this.LpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LpnIDField, value))
                {
                    this.LpnIDField = value;
                    this.RaisePropertyChanged("LpnID");
                }
            }
        }

        [DataMember]
        public string MultiFlag
        {
            get
            {
                return this.MultiFlagField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MultiFlagField, value))
                {
                    this.MultiFlagField = value;
                    this.RaisePropertyChanged("MultiFlag");
                }
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public string OrderLineID
        {
            get
            {
                return this.OrderLineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderLineIDField, value))
                {
                    this.OrderLineIDField = value;
                    this.RaisePropertyChanged("OrderLineID");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public string ParentContainerID
        {
            get
            {
                return this.ParentContainerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ParentContainerIDField, value))
                {
                    this.ParentContainerIDField = value;
                    this.RaisePropertyChanged("ParentContainerID");
                }
            }
        }

        [DataMember]
        public string PickDetailID
        {
            get
            {
                return this.PickDetailIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PickDetailIDField, value))
                {
                    this.PickDetailIDField = value;
                    this.RaisePropertyChanged("PickDetailID");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SealNo
        {
            get
            {
                return this.SealNoField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SealNoField, value))
                {
                    this.SealNoField = value;
                    this.RaisePropertyChanged("SealNo");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public decimal TotalQty
        {
            get
            {
                return this.TotalQtyField;
            }
            set
            {
                if (!this.TotalQtyField.Equals(value))
                {
                    this.TotalQtyField = value;
                    this.RaisePropertyChanged("TotalQty");
                }
            }
        }

        [DataMember]
        public decimal TotQty
        {
            get
            {
                return this.TotQtyField;
            }
            set
            {
                if (!this.TotQtyField.Equals(value))
                {
                    this.TotQtyField = value;
                    this.RaisePropertyChanged("TotQty");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UomID
        {
            get
            {
                return this.UomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomIDField, value))
                {
                    this.UomIDField = value;
                    this.RaisePropertyChanged("UomID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public decimal VannedQty
        {
            get
            {
                return this.VannedQtyField;
            }
            set
            {
                if (!this.VannedQtyField.Equals(value))
                {
                    this.VannedQtyField = value;
                    this.RaisePropertyChanged("VannedQty");
                }
            }
        }

        [DataMember]
        public int VannindLineID
        {
            get
            {
                return this.VannindLineIDField;
            }
            set
            {
                if (!this.VannindLineIDField.Equals(value))
                {
                    this.VannindLineIDField = value;
                    this.RaisePropertyChanged("VannindLineID");
                }
            }
        }

        [DataMember]
        public string VanningID
        {
            get
            {
                return this.VanningIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.VanningIDField, value))
                {
                    this.VanningIDField = value;
                    this.RaisePropertyChanged("VanningID");
                }
            }
        }

        [DataMember]
        public decimal VanningQty
        {
            get
            {
                return this.VanningQtyField;
            }
            set
            {
                if (!this.VanningQtyField.Equals(value))
                {
                    this.VanningQtyField = value;
                    this.RaisePropertyChanged("VanningQty");
                }
            }
        }

        [DataMember]
        public decimal Volume
        {
            get
            {
                return this.VolumeField;
            }
            set
            {
                if (!this.VolumeField.Equals(value))
                {
                    this.VolumeField = value;
                    this.RaisePropertyChanged("Volume");
                }
            }
        }

        [DataMember]
        public decimal Weight
        {
            get
            {
                return this.WeightField;
            }
            set
            {
                if (!this.WeightField.Equals(value))
                {
                    this.WeightField = value;
                    this.RaisePropertyChanged("Weight");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }

        [DataMember]
        public decimal Width
        {
            get
            {
                return this.WidthField;
            }
            set
            {
                if (!this.WidthField.Equals(value))
                {
                    this.WidthField = value;
                    this.RaisePropertyChanged("Width");
                }
            }
        }
    }
}

